import request from '../utils/request'
// export const getArticleList = (data)=>{
//     return request.get({
//         url:('/articles',data)
//     })
// }
export const getArticleList = (data) => {
     return request.get(`/articles`,data)
    }
//    获取新闻文章详情
export const getNewDetail = (article_id) => {
     return request.get(`/articles/`+ article_id)
    }
//     获取评论或评论回复
export const getComment = (data) => {
     return request.get(`/comments/`,data)
    }
//     添加评论或评论回复
export const addComment = (data) => {
     return request.post(`/comments`,data)
    }